package com.fulihui.usercore.enums;

import org.near.toolkit.model.BaseEnum;

/**
 * 用户注册类型枚举
 * Created by Willard.Hu on 2016/5/16.
 */
public enum UserRegisterTypeEnum implements BaseEnum {
    /**
     * 手机注册方式，已废弃，使用 UserRegisterTypeEnum.ACCOUNT
     */
    @Deprecated
    MOBILE("MOBILE", "手机注册方式"),

    /**
     * 第三方微信授权注册
     */
    WECHAT("WECHAT", "微信授权注册"),

    /**
     * 手机快捷登录，直接验证码，无需密码
     */
    MOBILE_QUICK("MOBILE_QUICK", "手机快捷登录"),

    /**
     * 账号登陆注册
     */
    ACCOUNT("ACCOUNT", "账号登陆注册"),

    /**
     * 账号注册带绑定微信
     */
    ACCOUNT_BINDING_WECHAT("ACCOUNT_BINDING_WECHAT", "账号注册带绑定微信"),

    WEIXIN_AUTH("WEIXIN_AUTH", "微信授权登录")
    ;

    private String code;
    private String desc;

    UserRegisterTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
